package com.example.android.story.Utils;

import android.arch.persistence.room.Entity;
import android.arch.persistence.room.ForeignKey;
import android.arch.persistence.room.PrimaryKey;
import android.support.annotation.NonNull;

/**
 * Created by liwei on 2018/6/10.
 */

@Entity(
        tableName = "_rememberMe"
        ,foreignKeys = {
                @ForeignKey(entity = User.class,parentColumns = "username",childColumns = "name")
        }
)
public class RememberMe {
    public void setName(@NonNull String name) {
        this.name = name;
    }

    @NonNull
    @PrimaryKey
    String name;
}
